import wait from "./wait"

export const toast = async({ title = "", icon = "none", duration = 1000, ...opt }) => {
	uni.showToast({
		title,
		icon,
		duration,
		...opt,
	})
	await wait.sec(duration+300)
	return Promise.resolve()
}